package com.luyue.zagj.utils;

import android.content.Context;
import android.text.TextUtils;
import android.widget.Toast;

import com.luyue.zagj.R;

/**
 * Created by Chen qin lang on 2016/12/15.
 * 邮箱 :   619766577@qq.com
 */
public class ToastUtil {
    public static Toast toast;

    public synchronized static void getToast(String string, Context context) {
        if (toast == null) {
            toast=Toast.makeText(context,"",Toast.LENGTH_SHORT);
        }

        toast.setText(string);
        toast.show();
    }
}
